package com.isoft.c2team3service2.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.isoft.c2team3service2.dto.CommentDTO;
import com.isoft.c2team3service2.entity.Comment;

import java.util.List;

public interface CommentService extends IService<Comment> {
    List<CommentDTO> getCommentsByPostId(Integer postId);
    Integer addComment(Comment comment);
    boolean deleteComment(Integer commentId, Integer userId);

    boolean updateComment(Integer commentId, Comment updatedComment);
}